home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3133 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.4 KB

  1. Path: www.cybercity.dk!usenet
  2. From: ccc6004@vip.cybercity.dk (Hans Henrik Happe)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: doubling pixels horizontally
  5. Date: 8 Feb 1996 16:40:42 GMT
  6. Organization: CyberCity of Denmark
  7. Message-ID: <2991.6612T1034T625@vip.cybercity.dk>
  8. References: <4f4ibc$gl9@news.cs.tu-berlin.de> <591.6610T1165T2102@login.eunet.no>
  9.     <1045.6611T753T2256@vip.cybercity.dk> <4faoe1$47@sunsystem5.informatik.tu-muenchen.de>
  10. NNTP-Posting-Host: 194.16.56.145
  11. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  12.  
  13.  
  14. Juergen "Rally" Fischer ( fischerj@informatik.tu-muenchen.de ) wrote:
  15. > In article <1045.6611T753T2256@vip.cybercity.dk>, ccc6004@vip.cybercity.dk
  16. > (Hans Henrik Happe) writes:
  17. >|> Organization: CyberCity of Denmark
  18. >|> Lines: 33
  19. >|> Message-ID: <1045.6611T753T2256@vip.cybercity.dk>
  20. >|> References: <4f4ibc$gl9@news.cs.tu-berlin.de>
  21. >|> <591.6610T1165T2102@login.eunet.no> NNTP-Posting-Host: 194.16.56.105
  22. >|> X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  23. >|> 
  24. >|> 
  25. >|> Patrick Hanevold ( patrick.hanevold@login.eunet.no ) wrote:
  26. >|> >>I wonder how to double pixels horizontally without writing
  27. >|> >>them twice! I've seen this trick in several demos and I
  28. >|> >>believe that it is just a little trick with the hardware.
  29. >|> >>I also wonder about another thing:
  30. >|> >>you may have noticed that there is a "sprite mode" where
  31. >|> >>the sprite switches from Hires back to Lores and displays
  32. >|> >>only every second column of pixels! I wonder if this is
  33. >|> >>possible/will happen  for bitmaps too.
  34. >|> 
  35. >|> > It's in the chunky to planar convertion.
  36. >|> 
  37. >|> You can also render only every 2nd pixels, mask out those you don't want
  38. >|> with sprites, and then:
  39. >|> 
  40. >|> loop
  41. >|>     1st frame: show pixel 02468... mask out 13579...
  42. >|>     2nd frame: show pixel 13579... mask out 02468...
  43. >|>     jump loop
  44. >|> 
  45. >|> In the 2nd frame you shift (scroll) the bitplanes 1 to the right.
  46. >|> This looks allmost as the real double pixels (Gives very little flicker)
  47. >|> and you only have to write half as much to the chip mem.
  48.  
  49. > not really. to change 100 pixels, you got to write 100 words.
  50. > only fx running 50Hz might work with the trick of writing
  51. > only 50 pix each frame, but then gfx maybe doesn't look
  52. > more like 50pix.
  53.  
  54. A bitmap for this screen would look like this:
  55.  
  56. ChipMem: 0101010101...  ; the '0' representing bitplane 0, '1' bitplane 1
  57.          ^^^^^^^^^^
  58. Pixel:   0011223344
  59.  
  60. will be combined this way:
  61.  
  62. 1st frame:
  63.  
  64. blp0pt = ChipMem; scroll 1 to the right | 010101010...
  65. blp1pt = ChipMem                        |010101010...
  66. sprite mask:                            | sbsbsbsbs  ; s = see throuth, b = black
  67.  
  68. 2nd frame:
  69.  
  70. blp0pt = ChipMem, scroll 2 to the right |  010101010...
  71. blp1pt = ChipMem  scroll 1 to the right | 010101010...
  72. sprite mask:                            |  sbsbsbsbs  ; s = see throuth, b = black
  73.  
  74. This is actually just like a 2pass scrabeled or 3pass nonscrab. blitterscreen,
  75. with spritemasks.
  76.  
  77. >|> 
  78. >|> This effect can be done using only the copper.
  79.  
  80. > aah, you mean interlaced copperscreen to get more resolution.
  81. > well. gives 200x256 1x2.
  82.  
  83. Not copperscreens. You use the copper to change sprite-pos, shifts and double vert. lines
  84. from frame to frame. Call it double buffered copper if you like.
  85.  
  86. > IMHO copperscreens are only usefull for demos.
  87. > use 3pass-c2p ("blitterscreen") or 4pass-c2p for games.
  88.  
  89.       2pass-c2p 2x2 scrab. 3pass-c2p 2x2 nonscrab. is what
  90.       my blitterscreen can do, the same goes for 2x1.
  91.  
  92.  
  93. Hans Henrik Happe
  94.  Goat / Sumpen
  95.  
  96.